package com.itheima.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: 模型类
 * @Date :2019-10-22 16:55
 * @Author : yuan_he_song
 */
@Data
@NoArgsConstructor // 必须有无惨构造
public class ExcelModel extends BaseRowModel {

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "姓名",index = 0)
    private String userName;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄",index = 1)
    private Integer age;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号",index = 2)
    private String idCard;

    /**
     * 性别 1:男 2:女
     */
    @ExcelProperty(value = "性别",index = 3)
    private String sex;

    /**
     * 电话(作为登录账号)
     */
    @ExcelProperty(value = "联系方式",index = 4)
    private String userPhone;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码",index = 5)
    private String passWord;

    private static final long serialVersionUID = 1L;

}
